package com.onec.service.route.dao;

import com.onec.service.api.dao.BaseRepository;
import com.onec.service.route.entity.RouteChannelBank;
import org.springframework.data.repository.RepositoryDefinition;

import java.util.List;

/**
 * @author ONEC
 */
@RepositoryDefinition(domainClass = RouteChannelBank.class, idClass = Long.class)
public interface RouteChannelBankRepository extends BaseRepository<RouteChannelBank, Long> {

    /**
     * @param routeChannelId ：
     * @return
     */
    List<RouteChannelBank> findByRouteChannelId(long routeChannelId);

    /**
     * @param routeChannelId ：
     * @param bankCode       ：
     * @return
     */
    RouteChannelBank findByRouteChannelIdAndBankCode(long routeChannelId, String bankCode);
}
